﻿using System.Collections.Generic;
namespace DataAssociations.Repository.Connection.RDBMSSchemaExplorer
{
    public class RelationalForeignKey
    {
        public RelationalForeignKey()
        {
            ToBeAnalyzed = false;
        }

        public bool ToBeAnalyzed { get; set; }
        public string ForeignKeyTable { get; set; }
        public string ForeignKeyColumn { get; set; }
        public string PrimaryKeyTable { get; set; }
        public string PrimaryKeyColumn { get; set; }
        public string ConstraintName { get; set; }
    }

    public class DatabaseMetadataOptions
    {
        public string TableName { get; set; }
        public string TransactionColumnName { get; set; }
        public string TransactionItemColumnName { get; set; }
    }

    public class TableForeignKeyData
    {
        public TableForeignKeyData()
        {
            ToBeAnalyzed = false;
            ForeignKeys = new List<string>();
        }

        public bool ToBeAnalyzed { get; set; }
        public string TableName { get; set; }
        public List<string> ForeignKeys {get; set;}
    }
}